package com.travel.service.Service;

import com.travel.model.dto.payment.PaymentRequest;
import com.travel.model.entity.payment.Payment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
//支付服务 创建支付 处理回调 获取用户支付记录 获取支付记录 取消支付
public interface PaymentService {
    Payment createPayment(PaymentRequest request);
    String handleCallback(String payload);
    Page<Payment> getUserPayments(Pageable pageable);
    Payment getPaymentById(Long id);
    void cancelPayment(Long paymentId);
} 